package jy.game.components.tower;


import java.util.ArrayList;
import java.util.List;

import wx.xml.simpleframework.xml.Attribute;
import wx.xml.simpleframework.xml.Element;
import wx.xml.simpleframework.xml.ElementList;
import wx.xml.simpleframework.xml.Root;

@Root(name = "map")
public class JyTowerMap {
    @Attribute(name = "key") public    String            key;
    @Attribute(name = "index") public  int               index;
    @ElementList(name = "item", inline = true) public List<JyTowerItem> items = new ArrayList<JyTowerItem>();
    @ElementList(name = "nick", inline = true) public     List<JyTowerNick> nicks = new ArrayList<JyTowerNick>();

    @Root(name = "item")
    static public class JyTowerItem {
        @Attribute(name = "key") public         String key;
        @Attribute(name = "number") public      int    number      = -1;
        @Attribute(name = "probability") public double probability = 1f;
    }
}
